<template>
  <div class="tab-bar-item">
   
    <!-- <slot v-if="! isActive" name="item-icon"></slot>
    <slot v-else name="item-icon-active"></slot>
    <div :class="{active:isActive}">
      <slot name="item-text"></slot>
    </div> -->
  </div>
</template>

<script>
export default {
  name: "TabBarItem",
  data() {
    return {
      isActive:true,
    };
  }
};
</script>

<style scoped>
.tab-bar-item {
  flex: 1;
  text-align: center;
  font-size: 14px;
}
.tab-bar-item img {
  width: 24px;
  height: 24px;
  margin-top: 3px;
  vertical-align: middle;
}
.active {
  color:red;
}
</style>